const Servers = require("../lib/server");
const sql = new Servers('uu_options');
const mysql = require('../lib/mysql');
class Options {
  static async add(data) {
    return await sql.insert(data);
  }
  static async list(cid) {
    let sqlinfo = 'SELECT * FROM uu_options WHERE cid = ?';
    return await mysql.sql(sqlinfo, [cid], 'select');
  }
}

module.exports = Options;